package com.raymond.cmpp.msg.response;

import com.raymond.client.msg.response.BaseResponseMessage;
import com.raymond.cmpp.enums.CommandIdType;

/**
 * 状态报告和上行响应
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-08-06 11:46
 */
public class DeliverResponseMessage extends BaseResponseMessage {
    /**
     * 流水号
     */
    private long msgId;
    /**
     * 结果集
     */
    private int result = 0;

    public DeliverResponseMessage(int sequenceId, long msgId) {
        super(sequenceId);
        this.msgId = msgId;
    }

    @Override
    public int getCommandId() {
        return CommandIdType.DELIVER_RESPONSE.getCommandId();
    }

    public long getMsgId() {
        return msgId;
    }

    public void setMsgId(long msgId) {
        this.msgId = msgId;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }
}
